package cn.chendd.bootsrtap.client;

import cn.chendd.bootsrtap.SeataXidRequestInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 新年好运 接口调用
 * @author chendd
 * @date 2023/1/23 23:47
 */
@FeignClient(name = "chendd-seata-bless" , path = "/seata-bless/api" , configuration = SeataXidRequestInterceptor.class)
public interface GoodLuckClient {

    /**
     * 插入数据成功
     */
    @GetMapping("/success")
    void insertSuccess();

    /**
     * 插入数据失败
     */
    @GetMapping("/exception")
    void insertException();
}
